cmake_minimum_required(VERSION 3.25)
project(pc_sdk_demo)

set(CMAKE_CXX_STANDARD 11)

include_directories(C:\\home\\linyongzhi\\SDL2-2.28.5\\include
        C:\\home\\linyongzhi\\ffmpeg-n5.1-latest-win32-gpl-shared-5.1\\include
        C:\\home\\linyongzhi\\opus\\include
        C:\\home\\linyongzhi\\pc_sdk\\include)
LINK_DIRECTORIES(C:\\home\\linyongzhi\\SDL2-2.28.5\\lib\\x86
        C:\\home\\linyongzhi\\ffmpeg-n5.1-latest-win32-gpl-shared-5.1\\lib
        C:\\home\\linyongzhi\\opus\\lib32
        C:\\home\\linyongzhi\\pc_sdk\\lib32)

add_executable(pc_sdk_demo main.cpp CPHH264Decoder.cpp CPHOpusDecoder.cpp CPHBuffer.cpp CPHBufferQueue.cpp)

target_link_libraries(pc_sdk_demo SDL2 SDL2main comctl32 avcodec avutil avformat swscale opus pc_sdk)
target_link_options(pc_sdk_demo PRIVATE "/SUBSYSTEM:WINDOWS")

